use sdfg::Result;
use sdfg::sdf;
#[sdf(
    flat_map,
    package = "sentence-to-words",
    namespace = "example",
    world = "sentence-to-words-world",
    interface = "sentence-to-words-service",
)]
fn sentence_to_words(sentence: String) -> Result<Vec<String>> {
    Ok(sentence.split_whitespace().map(String::from).collect())
}
